import Vue from 'vue'
import App from './App.vue'
import router from './router'

// import Vant from 'vant'
import 'vant/lib/index.css'
// 把vant中所有的组件都导入了
// import '@/utils/vant'
import { Button, NavBar, Icon, Form, List, Field, Grid, Toast, GridItem, Card, Tabbar, TabbarItem } from 'vant'
Vue.use(NavBar)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(NavBar)
Vue.use(Form)
Vue.use(Field)
Vue.use(Toast)
Vue.use(Button)
Vue.use(Icon)
Vue.use(Card)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(List)
Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
